﻿using FreeSql.DatabaseModel;using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Threading.Tasks;
using Newtonsoft.Json;
using FreeSql.DataAnnotations;

namespace DataBase.From {

	[JsonObject(MemberSerialization.OptIn), Table(Name = "t_ResDetectionII", DisableSyncStructure = true)]
	public partial class TResDetectionII {

		[JsonProperty, Column(IsPrimary = true, IsIdentity = true)]
		public long Id { get; set; }

		[JsonProperty]
		public int? Alarm { get; set; }

		[JsonProperty, Column(Name = "Alarm_Elec", DbType = "decimal(18,2)")]
		public decimal? AlarmElec { get; set; }

		[JsonProperty, Column(DbType = "decimal(18,2)")]
		public decimal? Battery { get; set; }

		[JsonProperty]
		public DateTime? CreateTime { get; set; }

		[JsonProperty, Column(Name = "deviceId")]
		public long? DeviceId { get; set; }

		[JsonProperty, Column(StringLength = 50)]
		public string Ip { get; set; }

		[JsonProperty, Column(StringLength = 50)]
		public string Period { get; set; }

		[JsonProperty, Column(Name = "R_AB")]
		public int? RAB { get; set; }

		[JsonProperty, Column(Name = "R_AB_BV")]
		public int? RABBV { get; set; }

		[JsonProperty, Column(Name = "R_AB_FV")]
		public int? RABFV { get; set; }

		[JsonProperty, Column(Name = "R_AB_I")]
		public int? RABI { get; set; }

		[JsonProperty, Column(Name = "R_AC")]
		public int? RAC { get; set; }

		[JsonProperty, Column(Name = "R_AC_BV")]
		public int? RACBV { get; set; }

		[JsonProperty, Column(Name = "R_AC_FV")]
		public int? RACFV { get; set; }

		[JsonProperty, Column(Name = "R_AC_I")]
		public int? RACI { get; set; }

		[JsonProperty, Column(Name = "R_BC")]
		public int? RBC { get; set; }

		[JsonProperty, Column(Name = "R_BC_BV")]
		public int? RBCBV { get; set; }

		[JsonProperty, Column(Name = "R_BC_FV")]
		public int? RBCFV { get; set; }

		[JsonProperty, Column(Name = "R_BC_I")]
		public int? RBCI { get; set; }

		[JsonProperty, Column(StringLength = 50)]
		public string Reserve1 { get; set; }

		[JsonProperty, Column(StringLength = 50)]
		public string Reserve2 { get; set; }

		[JsonProperty, Column(StringLength = 50)]
		public string Reserve3 { get; set; }

		[JsonProperty, Column(StringLength = 50)]
		public string Reserve4 { get; set; }

		[JsonProperty, Column(StringLength = 50)]
		public string Reserve5 { get; set; }

		[JsonProperty, Column(StringLength = 50)]
		public string Reserve6 { get; set; }

		[JsonProperty]
		public int? Sign { get; set; }

		[JsonProperty, Column(StringLength = -2)]
		public string TerminalId { get; set; }

		[JsonProperty]
		public DateTime? Time { get; set; }

		[JsonProperty, Column(Name = "V_A", DbType = "decimal(18,2)")]
		public decimal? VA { get; set; }

		[JsonProperty, Column(Name = "V_B", DbType = "decimal(18,2)")]
		public decimal? VB { get; set; }

		[JsonProperty, Column(Name = "V_C", DbType = "decimal(18,2)")]
		public decimal? VC { get; set; }

	}

}
